<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="./lib/vue.js"></script>
  </head>
  <body>
    <div id="app">
      <!-- i为索引值 -->
      <p v-for="(item,i) in list">索引值:{{i}}---{{item}}</p>
    </div>

    <script>
      var vm = new Vue({
        el: '#app',
        data: {
          list: [1,2,3,4,5,6]
        },
        methods: {

        }
      })
    </script>



  </body>
</html>
